<div class="ratings view">
<h2><?php  echo __d('ratings','Rating');?></h2>
	<dl>
		<dt><?php echo __d('ratings','Id'); ?></dt>
		<dd>
			<?php echo h($rating['Rating']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('ratings','Name'); ?></dt>
		<dd>
			<?php echo h($rating['Rating']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('ratings','Status'); ?></dt>
		<dd>
			<?php echo h($rating['Rating']['status']); ?>
			&nbsp;
		</dd>
	</dl>
	
	
	
	<div class="related">
		<h3><?php echo __d('ratings','Rating Articles');?></h3>
		<?php if (!empty($rating['RatingArticle'])):?>
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __d('ratings','Id'); ?></th>
			<th><?php echo __d('ratings','Article Id'); ?></th>
			<th><?php echo __d('ratings','Rating Id'); ?></th>
			<th class="actions"><?php echo __d('ratings','Actions');?></th>
		</tr>
		<?php
			$i = 0;
			foreach ($rating['RatingArticle'] as $ratingArticle): ?>
			<tr>
				<td><?php echo $ratingArticle['id'];?></td>
				<td><?php echo $ratingArticle['article_id'];?></td>
				<td><?php echo $ratingArticle['rating_id'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__d('ratings','View'), array('controller' => 'rating_articles', 'action' => 'view', $ratingArticle['id'])); ?>
					<?php echo $this->Html->link(__d('ratings','Edit'), array('controller' => 'rating_articles', 'action' => 'edit', $ratingArticle['id'])); ?>
					<?php echo $this->Form->postLink(__d('ratings','Delete'), array('controller' => 'rating_articles', 'action' => 'delete', $ratingArticle['id']), null, __d('ratings','Are you sure you want to delete # %s?', $ratingArticle['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	<?php endif; ?>
	
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__d('ratings','New Rating Article'), array('controller' => 'rating_articles', 'action' => 'add'));?> </li>
			</ul>
		</div>
	</div>
	<div class="related">
		<h3><?php echo __d('ratings','Rating Values');?></h3>
		<?php if (!empty($rating['RatingValue'])):?>
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __d('ratings','Id'); ?></th>
			<th><?php echo __d('ratings','Article Id'); ?></th>
			<th><?php echo __d('ratings','Rating Id'); ?></th>
			<th><?php echo __d('ratings','Rating Value'); ?></th>
			<th class="actions"><?php echo __d('ratings','Actions');?></th>
		</tr>
		<?php
			$i = 0;
			foreach ($rating['RatingValue'] as $ratingValue): ?>
			<tr>
				<td><?php echo $ratingValue['id'];?></td>
				<td><?php echo $ratingValue['article_id'];?></td>
				<td><?php echo $ratingValue['rating_id'];?></td>
				<td><?php echo $ratingValue['rating_value'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__d('ratings','View'), array('controller' => 'rating_values', 'action' => 'view', $ratingValue['id'])); ?>
					<?php echo $this->Html->link(__d('ratings','Edit'), array('controller' => 'rating_values', 'action' => 'edit', $ratingValue['id'])); ?>
					<?php echo $this->Form->postLink(__d('ratings','Delete'), array('controller' => 'ratings', 'action' => 'delete_value', $ratingValue['id'],'r'=>$rating['Rating']['id']), null, __d('ratings','Are you sure you want to delete # %s?', $ratingValue['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	<?php endif; ?>
	
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__d('ratings','New Rating Value'), array('controller' => 'rating_values', 'action' => 'add'));?> </li>
			</ul>
		</div>
	</div>	
</div>
<?php echo $this->element('/menu/left')?>


